package com.tebiecloud.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 自定义ID生成器配置
 * @Author: tebie
 * @Date: 2019-08-04 11:29
 */
@Data
@ConfigurationProperties(prefix = "tebiecloud.id")
public class IdGenProperties {

    /**
     * 工作ID (0~31)
     */
    private long workId = 0;

    /**
     * 数据中心ID (0~31)
     */
    private long centerId = 0;

}
